const fs=require('fs')
module.exports=(err)=>{
    let log = fs.readFileSync('./logs/ordermeal.log', 'utf-8')
    // 错误了就将日志最后的ok改成404
    log=log.replace(/ok$/,err)
    fs.writeFileSync('./logs/ordermeal.log', log)
}